package com.zheng.umbrella.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class UmbrellaHardwareMachine implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 设备码
     *
     * @mbg.generated
     */
    private String code;

    /**
     * 名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 额定装伞量
     *
     * @mbg.generated
     */
    private Integer capacity;

    /**
     * 类型
     *
     * @mbg.generated
     */
    private Integer type;

    /**
     * 状态
     *
     * @mbg.generated
     */
    private Integer status;

    /**
     * 故障状态
     *
     * @mbg.generated
     */
    private Integer faultstatus;

    /**
     * 投放时间
     *
     * @mbg.generated
     */
    private Long launchtime;

    /**
     * 代理
     *
     * @mbg.generated
     */
    private Integer agentId;

    /**
     * 国家
     *
     * @mbg.generated
     */
    private String country;

    /**
     * 省份
     *
     * @mbg.generated
     */
    private String province;

    /**
     * 地市
     *
     * @mbg.generated
     */
    private String city;

    /**
     * 地址
     *
     * @mbg.generated
     */
    private String address;

    /**
     * 商家
     *
     * @mbg.generated
     */
    private Integer oemId;

    /**
     * 经度
     *
     * @mbg.generated
     */
    private BigDecimal longitude;

    /**
     * 纬度
     *
     * @mbg.generated
     */
    private BigDecimal latitude;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String description;

    /**
     * 是否逻辑删除
     *
     * @mbg.generated
     */
    private Integer flag;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String cuser;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Long ctime;

    /**
     * 剩余量
     *
     * @mbg.generated
     */
    private Integer remainder;

    /**
     * 租金规则id
     *
     * @mbg.generated
     */
    private Integer rentRuleId;

    /**
     * 上报纬度
     *
     * @mbg.generated
     */
    private BigDecimal longitudeReport;

    /**
     * 上报纬度
     *
     * @mbg.generated
     */
    private BigDecimal latitudeReport;

    /**
     * 最后上报时间
     *
     * @mbg.generated
     */
    private Date lasttimeReport;

    /**
     * 剩余电量
     *
     * @mbg.generated
     */
    private BigDecimal electricquantity;

    /**
     * 押金规则ID
     *
     * @mbg.generated
     */
    private Integer ruleDepositId;

    /**
     * 伞道数
     *
     * @mbg.generated
     */
    private Integer pathcount;

    /**
     * 硬件版本
     *
     * @mbg.generated
     */
    private String hardwareversion;

    /**
     * 软件版本
     *
     * @mbg.generated
     */
    private String softwareversion;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getFaultstatus() {
        return faultstatus;
    }

    public void setFaultstatus(Integer faultstatus) {
        this.faultstatus = faultstatus;
    }

    public Long getLaunchtime() {
        return launchtime;
    }

    public void setLaunchtime(Long launchtime) {
        this.launchtime = launchtime;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getOemId() {
        return oemId;
    }

    public void setOemId(Integer oemId) {
        this.oemId = oemId;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getCuser() {
        return cuser;
    }

    public void setCuser(String cuser) {
        this.cuser = cuser;
    }

    public Long getCtime() {
        return ctime;
    }

    public void setCtime(Long ctime) {
        this.ctime = ctime;
    }

    public Integer getRemainder() {
        return remainder;
    }

    public void setRemainder(Integer remainder) {
        this.remainder = remainder;
    }

    public Integer getRentRuleId() {
        return rentRuleId;
    }

    public void setRentRuleId(Integer rentRuleId) {
        this.rentRuleId = rentRuleId;
    }

    public BigDecimal getLongitudeReport() {
        return longitudeReport;
    }

    public void setLongitudeReport(BigDecimal longitudeReport) {
        this.longitudeReport = longitudeReport;
    }

    public BigDecimal getLatitudeReport() {
        return latitudeReport;
    }

    public void setLatitudeReport(BigDecimal latitudeReport) {
        this.latitudeReport = latitudeReport;
    }

    public Date getLasttimeReport() {
        return lasttimeReport;
    }

    public void setLasttimeReport(Date lasttimeReport) {
        this.lasttimeReport = lasttimeReport;
    }

    public BigDecimal getElectricquantity() {
        return electricquantity;
    }

    public void setElectricquantity(BigDecimal electricquantity) {
        this.electricquantity = electricquantity;
    }

    public Integer getRuleDepositId() {
        return ruleDepositId;
    }

    public void setRuleDepositId(Integer ruleDepositId) {
        this.ruleDepositId = ruleDepositId;
    }

    public Integer getPathcount() {
        return pathcount;
    }

    public void setPathcount(Integer pathcount) {
        this.pathcount = pathcount;
    }

    public String getHardwareversion() {
        return hardwareversion;
    }

    public void setHardwareversion(String hardwareversion) {
        this.hardwareversion = hardwareversion;
    }

    public String getSoftwareversion() {
        return softwareversion;
    }

    public void setSoftwareversion(String softwareversion) {
        this.softwareversion = softwareversion;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", code=").append(code);
        sb.append(", name=").append(name);
        sb.append(", capacity=").append(capacity);
        sb.append(", type=").append(type);
        sb.append(", status=").append(status);
        sb.append(", faultstatus=").append(faultstatus);
        sb.append(", launchtime=").append(launchtime);
        sb.append(", agentId=").append(agentId);
        sb.append(", country=").append(country);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", address=").append(address);
        sb.append(", oemId=").append(oemId);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", description=").append(description);
        sb.append(", flag=").append(flag);
        sb.append(", cuser=").append(cuser);
        sb.append(", ctime=").append(ctime);
        sb.append(", remainder=").append(remainder);
        sb.append(", rentRuleId=").append(rentRuleId);
        sb.append(", longitudeReport=").append(longitudeReport);
        sb.append(", latitudeReport=").append(latitudeReport);
        sb.append(", lasttimeReport=").append(lasttimeReport);
        sb.append(", electricquantity=").append(electricquantity);
        sb.append(", ruleDepositId=").append(ruleDepositId);
        sb.append(", pathcount=").append(pathcount);
        sb.append(", hardwareversion=").append(hardwareversion);
        sb.append(", softwareversion=").append(softwareversion);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UmbrellaHardwareMachine other = (UmbrellaHardwareMachine) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getCapacity() == null ? other.getCapacity() == null : this.getCapacity().equals(other.getCapacity()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getFaultstatus() == null ? other.getFaultstatus() == null : this.getFaultstatus().equals(other.getFaultstatus()))
            && (this.getLaunchtime() == null ? other.getLaunchtime() == null : this.getLaunchtime().equals(other.getLaunchtime()))
            && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()))
            && (this.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getOemId() == null ? other.getOemId() == null : this.getOemId().equals(other.getOemId()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getFlag() == null ? other.getFlag() == null : this.getFlag().equals(other.getFlag()))
            && (this.getCuser() == null ? other.getCuser() == null : this.getCuser().equals(other.getCuser()))
            && (this.getCtime() == null ? other.getCtime() == null : this.getCtime().equals(other.getCtime()))
            && (this.getRemainder() == null ? other.getRemainder() == null : this.getRemainder().equals(other.getRemainder()))
            && (this.getRentRuleId() == null ? other.getRentRuleId() == null : this.getRentRuleId().equals(other.getRentRuleId()))
            && (this.getLongitudeReport() == null ? other.getLongitudeReport() == null : this.getLongitudeReport().equals(other.getLongitudeReport()))
            && (this.getLatitudeReport() == null ? other.getLatitudeReport() == null : this.getLatitudeReport().equals(other.getLatitudeReport()))
            && (this.getLasttimeReport() == null ? other.getLasttimeReport() == null : this.getLasttimeReport().equals(other.getLasttimeReport()))
            && (this.getElectricquantity() == null ? other.getElectricquantity() == null : this.getElectricquantity().equals(other.getElectricquantity()))
            && (this.getRuleDepositId() == null ? other.getRuleDepositId() == null : this.getRuleDepositId().equals(other.getRuleDepositId()))
            && (this.getPathcount() == null ? other.getPathcount() == null : this.getPathcount().equals(other.getPathcount()))
            && (this.getHardwareversion() == null ? other.getHardwareversion() == null : this.getHardwareversion().equals(other.getHardwareversion()))
            && (this.getSoftwareversion() == null ? other.getSoftwareversion() == null : this.getSoftwareversion().equals(other.getSoftwareversion()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getCapacity() == null) ? 0 : getCapacity().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getFaultstatus() == null) ? 0 : getFaultstatus().hashCode());
        result = prime * result + ((getLaunchtime() == null) ? 0 : getLaunchtime().hashCode());
        result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode());
        result = prime * result + ((getCountry() == null) ? 0 : getCountry().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getOemId() == null) ? 0 : getOemId().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getFlag() == null) ? 0 : getFlag().hashCode());
        result = prime * result + ((getCuser() == null) ? 0 : getCuser().hashCode());
        result = prime * result + ((getCtime() == null) ? 0 : getCtime().hashCode());
        result = prime * result + ((getRemainder() == null) ? 0 : getRemainder().hashCode());
        result = prime * result + ((getRentRuleId() == null) ? 0 : getRentRuleId().hashCode());
        result = prime * result + ((getLongitudeReport() == null) ? 0 : getLongitudeReport().hashCode());
        result = prime * result + ((getLatitudeReport() == null) ? 0 : getLatitudeReport().hashCode());
        result = prime * result + ((getLasttimeReport() == null) ? 0 : getLasttimeReport().hashCode());
        result = prime * result + ((getElectricquantity() == null) ? 0 : getElectricquantity().hashCode());
        result = prime * result + ((getRuleDepositId() == null) ? 0 : getRuleDepositId().hashCode());
        result = prime * result + ((getPathcount() == null) ? 0 : getPathcount().hashCode());
        result = prime * result + ((getHardwareversion() == null) ? 0 : getHardwareversion().hashCode());
        result = prime * result + ((getSoftwareversion() == null) ? 0 : getSoftwareversion().hashCode());
        return result;
    }
}